<template>
  <div>
    <div class="grey-line"></div>
    <div class="like">
      <img class="like-icon" src="http://img1.qunarzz.com/piao/fusion/1711/89/ebc329f16c55bb02.png" />
      <span class="like-desc">猜你喜欢</span>
    </div>
    <ul>
      <li class="like-content" v-for="(item,index) of dataList" :key="index">
        <img class="like-content-img" :src="item.url" />
        <div class="like-detail">
          <p>饭庄</p>
          <div class="argue">
            <span>x*****</span>
            <span>123评论</span>
          </div>
          <div class="price">
            <div>$26起</div>
            <div class="addr">泾阳县</div>
          </div>
        </div>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  name: "HomeRecommend",
  data() {
    return {
      dataList: [
        {
          id: 1,
          url:
            "http://img1.qunarzz.com/sight/p0/1907/cd/cdb4c750676d6d02a3.img.jpg_200x200_3556584c.jpg",
          price: "$22起",
          argue: "123456条评论",
          addr: "泾阳县",
          name: "饭庄"
        },
        {
          id: 2,
          url:
            "http://img1.qunarzz.com/sight/p0/1907/cd/cdb4c750676d6d02a3.img.jpg_200x200_3556584c.jpg",
          price: "$22起",
          argue: "123456条评论",
          addr: "泾阳县",
          name: "饭庄"
        },
        {
          id: 3,
          url:
            "http://img1.qunarzz.com/sight/p0/1907/cd/cdb4c750676d6d02a3.img.jpg_200x200_3556584c.jpg",
          price: "$22起",
          argue: "123456条评论",
          addr: "泾阳县",
          name: "饭庄"
		},
		{
          id: 4,
          url:
            "http://img1.qunarzz.com/sight/p0/1907/cd/cdb4c750676d6d02a3.img.jpg_200x200_3556584c.jpg",
          price: "$22起",
          argue: "123456条评论",
          addr: "泾阳县",
          name: "饭庄"
		},
		{
          id: 5,
          url:
            "http://img1.qunarzz.com/sight/p0/1907/cd/cdb4c750676d6d02a3.img.jpg_200x200_3556584c.jpg",
          price: "$22起",
          argue: "123456条评论",
          addr: "泾阳县",
          name: "饭庄"
		},
		{
          id: 6,
          url:
            "http://img1.qunarzz.com/sight/p0/1907/cd/cdb4c750676d6d02a3.img.jpg_200x200_3556584c.jpg",
          price: "$22起",
          argue: "123456条评论",
          addr: "泾阳县",
          name: "饭庄"
        }
      ]
    };
  }
};
</script>
<style ty  scoped>
.grey-line {
  height: 0.15rem;
  background-color: #f5f5f5;
}
.like {
  padding: 0.1rem;
  display: flex;
  align-items: center;
}
.like-icon {
  width: 0.3rem;
  height: 0.3rem;
}
.like-desc {
  font-size: 0.32rem;
  margin-left: 0.1rem;
}
.like-content {
  padding: 0.1rem 0;
  display: flex;
}
.like-content-img {
  width: 2rem;
  height: 2rem;
  margin-left: 0.2rem;
}
.like-detail {
  flex: 1;
  margin-left: 0.2rem;
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  font-size: 0.32rem;
}
.price {
  display: flex;
  justify-content: space-between;
}
.addr {
  font-size: 0.28rem;
  color: #616161;
  margin-right: 0.2rem;
}
</style> >
